package com.gong.DesignPattern.StrategyPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/7/6 0006 9:10
 */
public class Context {

    private Strategy strategy;

    public void setStrategy(Strategy strategy){
        this.strategy = strategy;
    }

    public int executeStrategy(int num1, int num2){
        return strategy.doAction(num1,num2);
    }
}
